package cn.gzjp.modules.it.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 违章记录Entity
 * @author zengcp
 * @version 2018-01-12
 */
public class WzLog extends DataEntity<WzLog> {
	
	private static final long serialVersionUID = 1L;
	private String licensePlate;		// 车牌
	private String date;		// 违章时间
	private String area;		// 违章地点
	private String wzcity;		// 违章城市
	private String act;		// 违章行为
	private String code;		// 违章代码
	private String fen;		// 扣分
	private String money;		// 违章罚款
	private String handled;		// 是否处理
	private String archiveno;		// 文书编号，处罚决定书
	private Date createTime;//创建时间;
	private Date updateTime;
	private String dealWith = "0";//0未处理1未缴费2已处理
	private String receiptno;//违章回执编号,缴费单号
	
	public WzLog() {
		super();
	}

	public WzLog(String id){
		super(id);
	}

	@Length(min=0, max=64, message="车牌长度必须介于 0 和 64 之间")
	@ExcelField(title="车牌", align=2, sort=1)
	public String getLicensePlate() {
		return licensePlate;
	}

	public void setLicensePlate(String licensePlate) {
		this.licensePlate = licensePlate;
	}
	
	@Length(min=0, max=64, message="违章时间长度必须介于 0 和 64 之间")
	@ExcelField(title="违章时间", align=2, sort=2)
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
	
	@Length(min=0, max=256, message="违章地点长度必须介于 0 和 256 之间")
	@ExcelField(title="违章地点", align=2, sort=3)
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=0, max=32, message="违章城市长度必须介于 0 和 32 之间")
	@ExcelField(title="违章城市", align=2, sort=4)
	public String getWzcity() {
		return wzcity;
	}

	public void setWzcity(String wzcity) {
		this.wzcity = wzcity;
	}
	
	@Length(min=0, max=128, message="违章行为长度必须介于 0 和 128 之间")
	@ExcelField(title="违章行为", align=2, sort=5)
	public String getAct() {
		return act;
	}

	public void setAct(String act) {
		this.act = act;
	}
	
	@Length(min=0, max=32, message="违章代码长度必须介于 0 和 32 之间")
	@ExcelField(title="违章代码", align=2, sort=6)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=2, message="扣分长度必须介于 0 和 2 之间")
	@ExcelField(title="扣分", align=2, sort=7)
	public String getFen() {
		return fen;
	}

	public void setFen(String fen) {
		this.fen = fen;
	}
	
	@Length(min=0, max=11, message="违章罚款长度必须介于 0 和 11 之间")
	@ExcelField(title="违章罚款", align=2, sort=8)
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	@Length(min=0, max=2, message="是否处理长度必须介于 0 和 2 之间")
	@ExcelField(title="是否处理", align=2, sort=9)
	public String getHandled() {
		return handled;
	}

	public void setHandled(String handled) {
		this.handled = handled;
	}
	
	@Length(min=0, max=32, message="文书编号长度必须介于 0 和 32 之间")
	@ExcelField(title="文书编号", align=2, sort=10)
	public String getArchiveno() {
		return archiveno;
	}

	public void setArchiveno(String archiveno) {
		this.archiveno = archiveno;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getDealWith() {
		return dealWith;
	}

	public void setDealWith(String dealWith) {
		this.dealWith = dealWith;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getReceiptno() {
		return receiptno;
	}

	public void setReceiptno(String receiptno) {
		this.receiptno = receiptno;
	}
}